package cn.kgm.user.dto.dto;

import cn.kgm.core.entity.Entity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.SuperBuilder;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * # 技术改变自己 #
 * toC客户
 * @author Kappi
 * @date   2024-04-10 21:13:04
 */
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "UserTypeCustomerSaveDTO", description = "toC客户")
public class UserTypeCustomerSaveDTO extends Entity<Long> {

    /**
     * 顶级客户
     */
    @ApiModelProperty(value = "顶级客户", position = 2)
    @NotNull(message = "顶级客户不能为空")
    private Long userId;

    /**
     * 客户名称
     */
    @ApiModelProperty(value = "客户名称", position = 3)
    @Size(max = 16, message = "客户名称长度不能超过16")
    @NotBlank(message = "客户名称不能为空")
    private String customerName;

}
